package com.yuejian_06.yuejian_06.service;

import com.yuejian_06.yuejian_06.bean.CommentBean;
import com.yuejian_06.yuejian_06.bean.PicBean;
import com.yuejian_06.yuejian_06.bean.SuccessBean;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by __ZL__ on 2017/10/13.
 */

public interface PicService {
    @GET("piclist")
    Call<List<PicBean>> getPicList(
    );

    @GET("picinfo")
    Call<PicBean> getPicInfo(
            @Query("pic_id") String pic_id
    );

    @GET("commentlist")
    Call<List<CommentBean>> getCommentList(
            @Query("pic_id") String pic_id
    );

    @GET("postcomment")
    Call<SuccessBean> getPostComment(
            @Query("user_id") String user_id,
            @Query("pic_id") String pic_id,
            @Query("comment_content") String comment_content
    );

    @GET("postpic")
    Call<SuccessBean> getPostPic(
            @Query("user_id") String user_id,
            @Query("pic_main") String pic_main
    );
}
